<template>
  <div class="container notice">
    <h4>通知</h4>
    <div class="cells">
      <div class="cell">
        <div class="cell-avatar">
          <img src="../../assets/avatar2.png" alt="">
        </div>
        <div class="cell-header">
          <div class="cell-title">
            <span>员工通讯录</span>
            <span class="watched"><i class="fa fa-eye"></i>(13)</span>
          </div>
          <div class="cell-date">
            2017-5-25 8:27
          </div>
        </div>
        <div class="cell-body">
          <p>员工通讯录已更新，请各位同事自行下载 <a @click="openalert()">《2017年通讯录》<i class="fa fa-download"></i></a></p>
        </div>
      </div>

      <div class="cell">
        <div class="cell-avatar">
          <img src="../../assets/avatar.png" alt="">
        </div>
        <div class="cell-header">
          <div class="cell-title">
            <span>转正通知</span>
            <span class="watched"><i class="fa fa-eye"></i>(11)</span>
          </div>
          <div class="cell-date">
            2017-4-24 8:30
          </div>
        </div>
        <div class="cell-body">
          <p>江南同事试用期间表现良好，现经领导批准于2017年5月转正。</p>
        </div>
      </div>

      <div class="cell">
        <div class="cell-avatar">
          <img src="../../assets/avatar3.png" alt="">
        </div>
        <div class="cell-header">
          <div class="cell-title">
            <span>项目通知</span>
            <span class="watched"><i class="fa fa-eye"></i>(7)</span>
          </div>
          <div class="cell-date">
            2017-4-20 8:30
          </div>
        </div>
        <div class="cell-body">
          <p>公司将于2017年5月3日开启新项目，请相关部门做好准备工作，将手头工作迅速收尾。</p>
        </div>
      </div>

      <div class="cell">
        <div class="cell-avatar">
          <img src="../../assets/avatar3.png" alt="">
        </div>
        <div class="cell-header">
          <div class="cell-title">
            <span>开发部</span>
            <span class="watched"><i class="fa fa-eye"></i>(12)</span>
          </div>
          <div class="cell-date">
            2017-04-01 9:34
          </div>
        </div>
        <div class="cell-body">
          <p>部分功能已调整，请开发部人员下载最新的功能表查看 <a @click="openalert()">《功能表》<i class="fa fa-download"></i></a></p>
        </div>
      </div>

      <div class="cell">
        <div class="cell-avatar">
          <img src="../../assets/avatar.png" alt="">
        </div>
        <div class="cell-header">
          <div class="cell-title">
            <span>系统消息</span>
            <span class="watched"><i class="fa fa-eye"></i>(18)</span>
          </div>
          <div class="cell-date">
            2017-03-12 8:45
          </div>
        </div>
        <div class="cell-body">
          <p>消息内容</p>
        </div>
      </div>
    </div>
  </div>

</template>

<script type="text/ecmascript-6">
  export default {
    methods: {
      openalert() {
        alert('当前为演示账号，无访问文件权限')
      }
    }
  }
</script>

<style>
  .notice .cells .cell-avatar img {
    width: 50px;
    height: 50px;
  }

  .notice h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
  }

  .notice .watched {
    margin-left: 20px;
    color: #bac0cc;
  }

  .notice .watched i {
    margin: 0 10px;
  }

  .notice .cell .cell-date {
    color: #bac0cc;
  }

  .notice .cell .cell-body a {
    color: #ff9536;
    cursor: pointer;
  }

  .notice .cell .cell-title span:first-child {
    font-weight: bold;
  }
</style>
